-- insert admin user 
insert into sys_actor  VALUES
	('admin00000', 'admin' , 'admin' , 1, 0 , 0 ,'超级系统管理员',
		current_date, 'admin00000' , current_date , 'admin00000', 'admin00000');

insert into sys_actor VALUES
	('user00000', 'user' , 'user' , 1, 0 , 0 ,'系统默认使用用户',
		current_date, 'admin00000' , current_date , 'admin00000', 'admin00000');
		
insert into sys_user VALUES
	('admin00000', 'admin' , 'admin@126.com' , null,null , null , null );

insert into sys_user VALUES
	('user00000', 'test123456' , 'user@126.com' , null,null , null , null);

	
insert into sys_role VALUES
	('admin00000', 'superadmin' , '超级系统管理员' , 0, 0 , '超级系统管理员','admin',null,
		current_date, 'admin00000' , current_date , 'admin00000', 'admin00000');
		
insert into sys_role VALUES
	('user00000', 'businessadmin' , '业务管理用户' , 0, 0 , '业务管理用户','business',null,
		current_date, 'admin00000' , current_date , 'admin00000', 'admin00000');
		
insert into map_actor_role VALUES ('admin00000', 'admin00000');
		
insert into map_actor_role VALUES ('user00000', 'user00000');


-- Test Url Resource --
insert into sys_resource VALUES ('url0001' , 'org.vsg.crm.admin.appmodules.web.UserController#pageusers.json' , 'org.vsg.crm.admin' , null , 0 , 0 ,'org.vsg.biz.system.model.SysUrl' , 1 , '2012-01-01' , 'testuser0001' , '2012-01-01' , 'testuser0001' ,'testuser0001'  );
insert into sys_url_resource VALUES('url0001' , '/apps_sysadmin/data/resource/page_roles.json' , null , 'internal');


-- Test Menu Resource
INSERT INTO sys_resource  VALUES ('menu0001', 'menu-crm.admin.role', 'org.vsg.crm.admin', null, 0, 0, 'org.vsg.biz.system.model.SysMenu', 1, '2012-01-01' , 'testuser0001' , '2012-01-01' , 'testuser0001' ,'testuser0001');
INSERT INTO sys_menu_resource VALUES ('menu0001', 0, null, 'fun0001', '应用平台', 0, 'url://org.vsg.crm.platform.apps.web.MainController#ui-index', null);
